//
//  UploadDelegate.m
//  iFlick
//
//  Created by 张 霄鹤 on 10-2-8.
//  Copyright 2010 xhzhang. All rights reserved.
//

#import "UploadDelegate.h"


@implementation UploadDelegate

- (id)init{
	if(self = [super init]){
		_data = [[NSMutableData alloc] init];
	}
	return self;
}


#pragma mark -
#pragma mark DATA

/**
 * 清空临时数据
 */
- (void)reset{

}

#pragma mark -
#pragma mark NSURLConnection Delegate impl

- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error{
	// TODO 加载失败
}

- (void)connectionDidFinishLoading:(NSURLConnection *)connection{
	// TODO 加载成功
}

- (void)connection:(NSURLConnection *)connection
   didSendBodyData:(NSInteger)bytesWritten
	totalBytesWritten:(NSInteger)totalBytesWritten
	totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite{
	
	// TODO 发送数据进度
}

- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response{
	// TODO 接收响应
}

- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data{
	// TODO 接收数据
}


#pragma mark -
#pragma mark Memory

- (void)dealloc{
	[super dealloc];
}

@end
